package experiments
{
	public class Hypothesis
	{
		private var _strName:String;
		private var _funcExperiment:Function;
		private var _nResult:Number;
		private var _nMaxValue:Number;
		private var _nMinValue:Number;
		
		public function Hypothesis(strName:String, funcExperiment:Function, nMinValue:Number, nMaxValue:Number)
		{
			_strName = strName;
			_funcExperiment = funcExperiment;
			_nMaxValue = nMaxValue;
			_nMinValue = nMinValue;			
		}
		
		public function update():void
		{
			_nResult = _funcExperiment();
		}

		public function getResult():Number { return _nResult; }
		
		public function get name():String { return _strName;}
		
		public function get maxValue():Number { return _nMaxValue;}
		public function get minValue():Number { return _nMinValue;}
	}
}